package acm.pta;

import java.util.PriorityQueue;
import java.util.Scanner;

public class B {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        PriorityQueue<Integer> queue=new PriorityQueue<>();
        queue.add(sc.nextInt());
        queue.add(sc.nextInt());
        queue.add(sc.nextInt());
        System.out.println(queue.poll()+"->"+queue.poll()+"->"+queue.poll());
    }
}
